 package nc.ui.bd.mes.dmoys.view;

 
 import java.awt.FlowLayout;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 public class ButtonFlowLayout
   extends FlowLayout
 {
   public static final int HORIZONTAL_SHOW = 0;
   public static final int VERTICAL_SHOW = 1;
   private static final int GAP_H = 8;
   private static final int GAP_V = 10;
   
   @Deprecated
   public ButtonFlowLayout()
   {
     this(0);
   }
   
 
 
 
 
 
 
 
 
 
 
 
 
   @Deprecated
   public ButtonFlowLayout(int directionflag)
   {
     if (directionflag == 0) {
       setAlignment(2);
       setHgap(8);
       setVgap(10);
     } else {
       setAlignment(1);
       setVgap(10);
       setHgap(8);
     }
   }
   
 
 
 
 
 
 
   public ButtonFlowLayout(int directionflag, boolean isTop)
   {
     if (directionflag == 0) {
       if (isTop) {
         setAlignment(0);
       } else {
         setAlignment(2);
       }
       setHgap(8);
       setVgap(10);
     } else {
       setAlignment(1);
       setVgap(10);
       setHgap(8);
     }
   }
 }

